package org.zn.mvcbase.mybatis.ddl;


import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface Ddldao {

	int createInstance(@Param("instanceName") String instanceName);

	int createTable(@Param("schema") String schema,
			@Param("tablename") String tablename
			,@Param("columns")List<TableEntity.Column> columns
			,@Param("pk")String pk);
	
	
	int alterTableForAdd(@Param("schema") String schema,
			@Param("tablename") String tablename, @Param("columns")List<TableEntity.Column> columns);
	
	int alterTableForDel(@Param("schema") String schema,
			@Param("tablename") String tablename, @Param("columns")List<TableEntity.Column> columns);
	
	
	int alterTableForCHANGE(@Param("schema") String schema,
			@Param("tablename") String tablename, @Param("columns")List<TableEntity.Column> columns);
	
	
	List<Map<String, String>> hasTables(@Param("schema") String schema,@Param("tables") List<String> tables);

	int hasTableflag(@Param("schema") String schema,@Param("tableName") String table);
	

	int dropTable(@Param("schema") String schema,@Param("tableName") String table);

}
